package org.enlongWu.pojo;


import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.enlongWu.anno.MessageState;

import java.time.LocalDateTime;

/**
 * 申请权限实体
 */
@Data
public class Application {
    private Integer id;//主键ID

    private String oldRole;//原本权限
    private String newRole;//想申请的权限

    @MessageState
    private String state;//状态：waiting，passed，rejected
    private LocalDateTime createTime;//提交时间
    private LocalDateTime updateTime;//批准时间
}
